<p class="block">
	Welcome to the control panel.
</p>

<div class="block">
	<h3>Unread Messages: <b>{$unread}</b></h3>
</div>

<div class="block">
	<h3>Currently Browsing Your Page: </h3>
	{if $currentlyBrowsing}
		<ul>
		{foreach item=item from=$currentlyBrowsing}
    	<li><a href="http://{$item.domain}/{$item.userName}">{$item.userName}{if $item.siteDomain != $site->domain}@{$item.siteDomain}{/if}</li>
    	{/foreach} 
		</ul>
	{else}
		No users currently browsing your page.
	{/if}
</div>

<div class="block">
	<h3>Recent Visitors</h3>
	{if $last15}
		<table width="100%" id="recentVisits" class="cpTable">
		<tr class="cpTableHeader">
			<td>User</td>
			<td>Last Seen</td>
		</tr>
		{foreach item=item from=$last15}
		<tr class="cpTableRow">
    		<td><a href="http://{$item.siteDomain}/{$item.userName}">{$item.userName}{if $item.siteDomain != $site->domain}@{$item.siteDomain}{/if}</td>
    		<td>{$item.dateVisited|date_format:"%D %I:%M %p"}</td>
    	</tr>
    	{/foreach} 
		</table>
	{else}
		No users have visited your page in the last 72 hours.
	{/if}
</div>

